/**
 * 
 */
package org.mspring.crm.entity.permission;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * @author Gao Youbo
 * @since Mar 1, 2012
 */
@Embeddable
public class RoleGroupPK implements Serializable {
    private Integer roleId;
    private Integer groupId;

    /**
     * 
     */
    public RoleGroupPK() {
        super();
    }

    /**
     * @param roleId
     * @param groupId
     */
    public RoleGroupPK(Integer roleId, Integer groupId) {
        super();
        this.roleId = roleId;
        this.groupId = groupId;
    }

    @Column(name = "role_id", nullable = false)
    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Column(name = "group_id", nullable = false)
    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

}
